let x=1, promise, value;

//async
promise = new Promise(resolve=>{
    let re = x+1
    resolve(re)
})

//await
promise.then(_value=>{
    value = _value
}).catch(e=>{
    console.log(e)
})
